﻿@model WebUI.Models.SmsTemplate
@using (Ajax.BeginForm(new AjaxOptions()
{
    LoadingElementId = "OnLoadingSpan",
    UpdateTargetId = Request["_utid"],
    InsertionMode = InsertionMode.Replace,
    HttpMethod = "Post",
    OnSuccess = "$('#dialogbox').dialog('close');",
    OnFailure = "OnSiteError"
}))
{
     <div id="show" class="show1">
         <fieldset>    
            <legend>模板</legend>
            <div class="editor-label">
                @Html.LabelFor(model => model.Type)
            </div>
            <div class="editor-field">
                 @Html.DropDownListFor(model => model.Type, new List<SelectListItem>() 
                    {
                        new SelectListItem(){ Value = "发起邀请",Text = "发起邀请" },
                            new SelectListItem(){ Value = "短信催报",Text = "短信催报" },
                            new SelectListItem(){ Value = "短信随访开始问候语",Text = "短信随访开始问候语" },
                            new SelectListItem(){ Value = "短信随访",Text = "短信随访" },
                            new SelectListItem(){ Value = "诊断异常短信",Text = "诊断异常短信" },
                            new SelectListItem(){ Value = "诊断正常短信",Text = "诊断正常短信" },
                            new SelectListItem(){ Value = "结束语",Text = "结束语" },
                            new SelectListItem(){ Value = "短信留言",Text = "短信留言" },
                    }, new { Class = "SmsTemplateDDL" })                      
            </div>
            <div class="editor-label">
                @Html.LabelFor(model => model.SmsText)
            </div>
            <div class="editor-field">
                @Html.TextAreaFor(model => model.SmsText, new { Class = "SmsTemplateEdit" })
            </div>
            <div>
                <input type="submit" value="保存" />
            </div>
        </fieldset>
</div> 
}

